package com.cspg.design.bean;

import com.cspg.design.bean.userInfoBean.UserInfoBean;

public class UserInfo {
    private static volatile UserInfo mUserInfo = null;
    private UserInfo(){}

    public Long id;
    public String userName;
    public String password;
    public String token;
    public java.util.Date date;
    public String logon;
    public String role;
    public String unit;

    public static UserInfo getInstance(){
        if (mUserInfo == null){
            synchronized (UserInfo.class){
                if (mUserInfo == null){
                    mUserInfo = new UserInfo();
                }
            }
        }
        return mUserInfo;
    }

    public static void setUserInfo(UserInfo userInfo){
        mUserInfo = userInfo;
    }
}
